﻿

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>成都九方报价网站专版单页</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="/static/static1/css/a2f29159061e4b22a0106534d418b192.css" rel="stylesheet"/>

    <script src="/static/static1/js/9cebb44ef0bb4d4c8ce96b235d192fc9.js"></script>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <link rel="stylesheet" href="/static/static1/css/font-awesome.min_3.css">
    <link rel="stylesheet" href="/static/static1/css/ionicons.min_3.css">
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="/static/static1/js/html5shiv.min_3.js"></script>
        <script src="/static/static1/js/respond.min_3.js"></script>
    <![endif]-->
    <style>         .main-header .navbar {             background-color: #0556a2!important;         }         .main-header .logo {             background-color: #0556a2!important;         }         .skin-green .wrapper, .skin-green .main-sidebar, .skin-green .left-side {             background-color: #fff!important;         }         .skin-green .sidebar a {             color: #1a2327;         }     </style> </head>
<body class="hold-transition sidebar-mini">
    <div class="wrapper">
        <header class="main-header">
            
<!-- Logo -->
<a href="#" class="logo">
    <!-- mini logo for sidebar mini 50x50 pixels -->
    <span class="logo-mini">
        <b>报价</b>
    </span>
    <!-- logo for regular state and mobile devices -->
    <span class="logo-lg">
        <img src="/static/static1/images/jfyw.png" width="200px" height="40px">
    </span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
    <!-- Sidebar toggle button-->
    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        &nbsp;产品类型
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </a>
    <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
            <i class="fa fa-bars"></i>
        </button>
    </div>
    <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
        <ul class="nav navbar-nav">

        </ul>
    </div>
    <!-- /.navbar-collapse -->
    <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
            <!-- User Account: style can be found in dropdown.less -->
            <li class="dropdown user user-menu">
               <!--<a href="javascript:;" class="dropdown-toggle" onclick="logout();">退出登录</a> -->
            </li>
            <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <img src="/static/static1/picture/20180305184444_6163_3.png" class="user-image" alt="User Image">
                    <span class="hidden-xs">九方印务</span>
                </a>
                <ul class="dropdown-menu">
                    <!-- User image -->
                    <li class="user-header">
                        <img src="/static/static1/picture/20180305184444_6163_3.png" class="img-circle" alt="User Image">
                        <p>
                            九方印务
                        </p>
                    </li>
                    <!-- Menu Footer-->
                    <li class="user-footer">
                        <div class="pull-right">
                                <a href="javascript:;" class="btn btn-default btn-flat" onclick="logout();">退出</a>
                        </div>
                    </li>
                </ul>
            </li>
            <!-- Control Sidebar Toggle Button -->
            
        </ul>

    </div>
</nav>
<script>
    function logout() {
        $.ajax({
            type: "POST",
            url: "/logout",
            success: function(data) {
                location.href = "/login";
            }
        });
    }

    function goLogin() {
        var returnUrl = window.location.pathname + window.location.search;
        //console.log(returnUrl);
        location.href = "/login?returnUrl=" + returnUrl + "";
    }
</script>
        </header>
        <aside class="main-sidebar">


            <section class="sidebar">
                <input type="hidden" id="hidSkin" value="skin-green" />
                <ul class="sidebar-menu">
                    <li class="treeview" url="/printer/api/mp" productId="1">
                        <a href="/printer/api/bgj">
                            <i class="fa fa-meetup"></i> <span>不干胶</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>
                    <li class="treeview" url="/printer/api/mp" productId="2">
                        <a href="/printer/api/mp">
                            <i class="fa fa-book"></i> <span>名片</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>

                    <li class="treeview" url="/printer/api/std" productId="2">
                        <a href="/printer/api/std">
                            <i class="fa fa-shopping-bag"></i> <span>手提袋</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>

                    <li class="treeview" url="/printer/api/ft" productId="2">
                        <a href="/printer/api/ft">
                            <i class="fa fa-clone"></i> <span>封套</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>

                    <li class="treeview" url="/printer/api/xf" productId="2">
                        <a href="/printer/api/xf">
                            <i class="fa fa-envelope-o"></i> <span>信封</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>



                    <li class="treeview" url="/printer/api/wtld" productId="2">
                        <a href="/printer/api/wtld">
                            <i class="fa fa-bookmark"></i> <span>无碳联单</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>

                    <li class="treeview" url="/printer/api/pvccard" productId="2">
                        <a href="/printer/api/pvccard">
                            <i class="fa fa-credit-card"></i> <span>PVC卡</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                    </span>
                        </a>
                    </li>


                    <!--<li class="treeview" productId="77">-->
                    <!--<a href="?productId=77">-->
                    <!--<i class="fa fa-circle-o"></i> <span>单页</span>-->
                    <!--<span class="pull-right-container">-->
                    <!--<small class="label pull-right bg-red"></small>-->
                    <!--<i class="fa fa-angle-left pull-right"></i>-->
                    <!--</span>-->
                    <!--</a>-->
                    <!--<ul class="treeview-menu">-->
                    <!--<li url="/JoinSingle/Index" productId="3">-->
                    <!--<a href="/JoinSingle/Index?productId=3">-->
                    <!--<i class="fa fa-circle-o"></i>-->
                    <!--特价单页-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li url="/OnlySingle/Index" productId="24">-->
                    <!--<a href="/OnlySingle/Index?productId=24">-->
                    <!--<i class="fa fa-circle-o"></i>-->
                    <!--专版单页-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--</ul>-->
                    <!--</li>-->
                    <!--<li class="treeview" url="/DigitalSingle/Index" productId="38">-->
                    <!--<a href="/DigitalSingle/Index?productId=38">-->
                    <!--<i class="fa fa-circle-o"></i> <span>数码单页</span>-->
                    <!--<span class="pull-right-container">-->
                    <!--<small class="label pull-right bg-red"></small>-->
                    <!--</span>-->
                    <!--</a>-->
                    <!--</li>-->
                    <li class="treeview" productId="63">
                        <a href="?productId=63">
                            <i class="fa fa-book"></i> <span>画册</span>
                    <span class="pull-right-container">
                        <small class="label pull-right bg-red"></small>
                            <i class="fa fa-angle-left pull-right"></i>
                    </span>
                        </a>
                        <ul class="treeview-menu">
                            <li url="/printer/api/hc" productId="37">
                                <a href="/printer/api/hc">
                                    <i class="fa fa-circle-o"></i>
                                    专版画册
                                </a>
                            </li>
                            <li url="/DigitalAlbum/Index" productId="39">
                                <a href="/DigitalAlbum/Index?productId=39">
                                    <i class="fa fa-circle-o"></i>
                                    数码画册
                                </a>
                            </li>
                        </ul>
                    </li>
                    <!--<li class="treeview" productId="67">-->
                    <!--<a href="/printer/api/pvc">-->
                    <!--<i class="fa fa-circle-o"></i> <span>PVC</span>-->
                    <!--<span class="pull-right-container">-->
                    <!--<small class="label pull-right bg-red"></small>-->
                    <!--<i class="fa fa-angle-left pull-right"></i>-->
                    <!--</span>-->
                    <!--</a>-->
                    <!--<ul class="treeview-menu">-->
                    <!--<li url="/printer/api/pvc" productId="23">-->
                    <!--<a href="/printer/api/pvc">-->
                    <!--<i class="fa fa-circle-o"></i>-->
                    <!--PVC标准卡-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--</ul>-->
                    <!--</li>-->
                </ul>
            </section>

<script type="text/javascript">
    $(function () {
        var url = window.location.pathname;
        var productId = GetQueryString("productId");

        var menuLi = $("li");
        $.each(menuLi,
            function (i, item) {
                if ($(item).attr("url") === url) {
                }
                if ($(item).attr("productId") === productId) {
                    //console.log(productId);
                    $(item).parent().parent().parent().parent().addClass("active");
                    $(item).parent().parent().parent().addClass("active");
                    $(item).parent().parent().addClass("active");
                    $(item).addClass("active");
                }
            });
    });
</script>
        </aside>
        <div class="content-wrapper angular-animation-container">
            <div class="shuffle-animation">
                

<section class="content">
    <div class="box box-primary">
        <form id="calcForm" class="easyui-form" method="post" data-options="novalidate:true">
            <input type="hidden" id="hidProductCode" name="ProductCode" value="56BBD356-A728-445C-B5A7-C5A621C28D47"/>
            <input type="hidden" id="hidPlanCraftCode" name="PlanCraftCode" value="B4F6E26C-8F4E-46E7-AB98-C808B810E4B4"/>
            <div class="box-header with-border">
                <h3 class="box-title">专版单页</h3>
                <div class="box-tools pull-right">

                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <div class="row">
                    <div class="col-md-5">
                        <div class="form-group">
                            <label>选择材料</label>
                            <select class="form-control select2" name="Paper" id="selPaper" style="width: 100%;">
                                    <option value="391E21D5-0DA6-4996-B6BF-EA7A7B83AC4C">157克铜版纸</option>
                                    <option value="24F38FB4-1B33-445A-A870-D533A8D951AF">128克铜版纸</option>
                                    <option value="993DDD2E-A1C3-44AE-8F8B-3392695E7ABB">250克铜版纸</option>
                                    <option value="00AA211A-9CB0-4CCC-8523-D11CE9359A13">300克铜版纸</option>
                                    <option value="0CF393B7-F9C0-4C67-8253-D09403559E38">105克铜版纸</option>
                                    <option value="EA3A87B9-1D4C-4C47-BE39-43DD5E00C57A">200克铜版纸</option>
                                    <option value="3287E0F4-8580-4373-8178-354DDFA9C5D6">80克双胶纸</option>
                                    <option value="D955E584-5C2E-4101-81AB-9F9D4952F3A0">100克双胶纸</option>
                                    <option value="C2391077-FBAA-47A4-A4F1-7E2777878C7A">120克双胶纸</option>
                                    <option value="484CD1FA-9126-42A6-A2AE-F34F98D9AE2C">128克哑粉纸</option>
                                    <option value="BE7666EF-5DE1-4197-9071-179C2B0524C8">157克哑粉纸</option>
                                    <option value="7032C031-2987-4577-9F84-2B8674AEF454">200克哑粉纸</option>
                                    <option value="74AE4FF0-AD00-4D43-AD30-3A4BFBA5BA65">250克哑粉纸</option>
                            </select>
                        </div>
                        <!-- /.form-group -->
                        <div class="form-group" id="trCustom">
                            <label>尺寸</label>
                            <select class="form-control" style="width: 100%;" name="Size" id="selSize">
                                    <option value="2C3B8B0B-4269-4E89-944A-BD600D9DF94D">
                                        大2<a>开竖</a>570*860
                                    </option>
                                    <option value="3244076A-0B9A-454F-9815-CE55911E0116">
                                        正2<a>开竖</a>520*760
                                    </option>
                                    <option value="7731C856-139E-4561-BBA3-6961F2DF2C37">
                                        大3<a>开竖</a>370*860
                                    </option>
                                    <option value="10F62FC4-180F-4035-A519-DC36FD4C4F69">
                                        正3<a>开竖</a>340*760
                                    </option>
                                    <option value="9B2E18B8-4BB7-4948-8375-CF41B38D73FB">
                                        大4<a>开竖</a>280*860
                                    </option>
                                    <option value="6052A084-B164-4FE7-A1EC-2199C2455D0B">
                                        正4<a>开竖</a>370*520
                                    </option>
                                    <option value="6F10C0C7-2969-4BD9-A343-7DBBEF8838BD">
                                        大4<a>开竖</a>420*570
                                    </option>
                                    <option value="0ED3E9E8-7BC5-4B2E-945C-6F8E41F346E6">
                                        大6<a>开竖</a>280*570
                                    </option>
                                    <option value="215BAC18-28CF-4C25-A0E7-D6DFC840B72D">
                                        大6<a>开竖</a>370*420
                                    </option>
                                    <option value="0422E873-253D-42DE-85D5-C9C26DAE20DF">
                                        正6<a>开竖</a>240*520
                                    </option>
                                    <option value="98BD5F97-6FF9-4913-AA82-95365379A5CA">
                                        正6<a>开竖</a>340*370
                                    </option>
                                    <option value="B2CC1951-765B-46BB-AFC3-9B44013BDB39">
                                        正8<a>开竖</a>370*260
                                    </option>
                                    <option value="CC198879-2C38-4416-9957-9CEF036AC040">
                                        大8<a>开竖</a>285*420
                                    </option>
                                    <option value="A0E975AD-95F6-4D59-9DB4-452F5A19CA75">
                                        大12<a>开竖</a>210*370
                                    </option>
                                    <option value="F1995660-7075-4C6A-BE01-2872812D6C97">
                                        大16<a>开竖</a>210*285
                                    </option>
                                    <option value="C3E6C500-6F9A-4A01-B7D2-CEE7F801297D">
                                        正16<a>开竖</a>185*260
                                    </option>
                                    <option value="68C02E6D-80D8-48E8-8FB7-9D5D85EEC08E">
                                        大24<a>开竖</a>180*210
                                    </option>
                                    <option value="851D3ECE-4324-4E49-AE1B-6ACB0D7119D7">
                                        正24<a>开竖</a>160*180
                                    </option>
                                    <option value="E694F044-E814-49A2-AAEC-1DBA0357D2CA">
                                        正32<a>开竖</a>125*185
                                    </option>
                                    <option value="B2DCA00D-91CF-4F76-9DC9-D710567B9AA6">
                                        大32<a>开竖</a>140*210
                                    </option>
                                    <option value="8486AA7A-A68D-4DFC-BF99-201B8AF57964">
                                        大48<a>开竖</a>90*210
                                    </option>
                                    <option value="52C4A969-EC20-47F7-B541-5A2444A4FBC3">
                                        正48<a>开竖</a>80*180
                                    </option>
                                    <option value="C74768ED-4FE7-4CA4-9E74-AE1A3EA02DB2">
                                        正64<a>开竖</a>90*120
                                    </option>
                                    <option value="6AC59069-B6BC-437A-9786-49430213091F">
                                        大64<a>开竖</a>100*140
                                    </option>
                                    <option value="21619BA6-CFD0-434D-B6BD-D27249A69F39">
                                        大96<a>开竖</a>90*100
                                    </option>
                                    <option value="CCEC3D99-90FE-42A1-9BE5-9BBC8FC05DF1">
                                        大96<a>开竖</a>65*140
                                    </option>
                                    <option value="51661FD4-9954-4732-8418-CD7128CCF2BB">
                                        正96<a>开竖</a>80*90
                                    </option>
                                    <option value="D4B3BA03-0A6F-4D04-BF9F-3E0FEE2C4BC9">
                                        大128<a>开竖</a>65*100
                                    </option>
                                    <option value="3CEB1887-358B-49EA-899D-8542A06D8B96">
                                        正128<a>开竖</a>60*125
                                    </option>
                                    <option value="13DE2598-3085-4FC0-8029-345E959F046F">
                                        大12<a>开竖</a>280*280
                                    </option>
                                    <option value="FCEB3760-1820-46AC-9D2B-4C27CC6D933C">
                                        正12<a>开竖</a>250*250
                                    </option>
                            </select>
                            <!-- /.row -->
                        </div>
                        <!-- /.form-group -->
                        <div class="form-group">
                            <label>数量</label>
                            <input type="text" class="form-control" name="Num" id="txtNum" placeholder="数量" value="1000">
                        </div>
                        <!-- /.form-group -->
                        <div class="form-group">
                            <label>印刷</label>
                            <div class="form-group">
                                <label><input type="radio" class="icheck" value="2" name="PrintSide" checked> 双面</label>
                                <label><input type="radio" class="icheck" value="1" name="PrintSide"> 单面</label>
                            </div>
                        </div>
                        <!-- /.form-group -->
                        <div class="form-group">
                            <label>色彩</label>
                            <div class="form-group">
                                <label><input type="radio" class="icheck" value="color" name="PrintType" checked> 彩刷</label>
                                <label><input type="radio" class="icheck" value="singlecolor" name="PrintType"> 单黑印</label>
                            </div>
                        </div>
                        <!-- /.form-group -->
                        <div class="form-group">
                            <label>选择工艺</label>
                            <div class="form-group divCraft" id="divCraft">
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="125" value="738460FF-04EC-48C7-AC99-DB57B986684F"/>单面亮膜
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="126" value="88841688-BC3B-47B8-AB92-4F54DEEB5FDA"/>双面亮膜
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="127" value="4180F1D9-5342-4FE7-899A-619F46ECF97B"/>单面哑膜
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Membrance" name="Crafts" id="128" value="6734C7BF-0299-4DAE-8796-A1F4CA186AA0"/>双面哑膜
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Fold" name="Crafts" id="129" value="9E1D897F-8C2E-4E43-A4B6-EC2667670C11"/>二折页
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Fold" name="Crafts" id="130" value="8CB61296-7D48-4454-9EA1-3E2CE1933BD8"/>三折页
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Fold" name="Crafts" id="131" value="B6B40A80-BEDB-4A13-9995-BE49C751AFB4"/>四折页
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Fold" name="Crafts" id="132" value="27E7E552-D4C5-4A00-9897-902DC6A711C4"/>五折页
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Press" name="Crafts" id="133" value="E3035462-E068-4BCB-9E60-661330FB7C85"/>一道痕
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Press" name="Crafts" id="134" value="85122034-4982-480F-B2B7-D841A387ED2B"/>二道痕
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Press" name="Crafts" id="135" value="294BFB84-9494-4F7E-B13B-68DD975C6942"/>三道痕
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Number" name="Crafts" id="136" value="FE6A9F05-F5C3-4934-B0C7-2AE1E1767B41"/>单码
                                        &nbsp;&nbsp;
                                    </label>
                                    <label>
                                        <input type="checkbox" class="icheck" crafttype="Number" name="Crafts" id="137" value="68D2384C-05C8-46F1-AD53-52AC4E8A8414"/>双码
                                        &nbsp;&nbsp;
                                    </label>
                            </div>
                        </div>
                        <!-- /.form-group -->
                    </div>
                    <!-- /.col -->
                    <div class="col-md-7">
                        <img src="/static/static1/picture/20180720112307_3755.png" style="height: auto; max-height: 100%; max-width: 100%; width: auto;"/>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
                <div class="row" id="rowResult" style="display: none;">
                    <div class="col-md-10">
                        <div class="form-group">
                            <label>计算总结</label>
                            <input type="text" class="form-control" name="txtResult" id="txtResult" placeholder="计算总结">
                        </div>
                        <!-- /.form-group -->
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
                <button type="button" class="btn btn-primary btn-lg" onclick="submitForm()">计算</button>
                <button type="button" class="btn  btn-default btn-lg" onclick="clearForm()">清空</button>
                <button type="button" class="btn  btn-success btn-lg" onclick="copyResult()" id="btnResult" style="display: none;">复制计算总结到剪切板</button>
            </div>
        </form>
    </div>
    <!-- /.box -->
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-success">
                <div class="box-header">
                    <h3 class="box-title">计算结果</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <table id="tbResult" class="table table-bordered table-hover"></table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
    </div>
    <!-- /.row -->
    <div class="row" id="rowUserPrompts">
        <div class="col-xs-12">
            <div class="box box-warning" id="divUserPrompts">

            </div>
            <!-- /.box -->
        </div>
    </div>
    <!-- /.row -->
</section>

            </div>
        </div>
        

<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> 0.1.0.5
    </div>
    <strong>&nbsp;</strong>
</footer>
    </div>
    <script>
    $(function() {
        initICheck();
        initSelect2();

        toastr.options = {
            "positionClass": "toast-top-center" //弹出窗的位置
        };
        var skinClass = $("#hidSkin").val();
        $("body").addClass(skinClass);
    });

    function showMobileUserPrompts() {
        var userPrompts = "";
        if (false) {
            userPrompts += "<div class=\"box-body low text-red\">";
            userPrompts += "备注：您的资料正在审核中，审核通过后，即可获得最终报价，感谢支持，请您耐心等待！";
            userPrompts += "</div>";
        } else if (false) {
            userPrompts += "<div class=\"box-body low text-red\">";
            userPrompts += "备注：以上价格仅供参考，完善资料即可获取最新报价";
            userPrompts += "</div>";
            userPrompts += "<div class=\"box-body low text-red text-center\">";
            userPrompts += "<a href=\"http://weixin.shengdaprint.com/Account/RegisterCustomer?companyCode=1&amp;dataSource=\" class=\"btn btn-primary\">完善资料</a>";
            userPrompts += "</div>";
        }
        $("#rowUserPrompts").show();
        $("#divUserPrompts").html(userPrompts);
    }
    </script>
    
    <script type="text/javascript">
        $(function() {
            $("#rowUserPrompts").hide();
            var planCraftCode = $("#hidPlanCraftCode").val();
            //默认绑定第一个纸张材料下的尺寸
            var paperCode = $("#selPaper").find("option").eq(0).val();
            enableCraft(planCraftCode, paperCode, "divCraft");

            //切换纸张材料时，重新绑定后工选项
            $("#selPaper").on("change",
                function(e) {
                    paperCode = $(this).val();
                    enableCraft(planCraftCode, paperCode, "divCraft");
                });
            setTextColor();
            initICheck();
            necessaryCraft();
        });

        function copyResult() {
            var element = $("#txtResult");
            copyText(element);
        }

        function submitForm() {
            $("#tbResult").html("");
            $("#rowUserPrompts").hide();
            $.ajax({
                type: "POST",
                url: "/OnlySingle/CalcResult",
                data: $("#calcForm").serialize(),
                success: function(res) {
                    var data = res.Result;
                    if (data.Success) {
                        if (false) {
                            var result = "<thead>";
                            result += "<tr>";
                            result += "<th>成品数量</th>";
                            result += "<th>适合开纸尺寸</th>";
                            result += "<th>印刷机</th>";
                            result += "<th>印刷方式</th>";
                            result += "<th>总印损</th>";
                            result += "<th>总后工损</th>";
                            result += "<th>纸吨价</th>";
                            result += "<th>大张纸数量</th>";
                            result += "<th>印工费</th>";
                            result += "<th>用纸费</th>";
                            result += "<th>覆膜费</th>";
                            result += "<th>折页费</th>";
                            result += "<th>压痕费</th>";
                            result += "<th>打码费</th>";
                            result += "<th>模切费</th>";
                            result += "<th>总费用</th>";
                            result += "</tr>";
                            result += "</thead>";
                            result += "<tbody>";
                            $.each(data.Result.OnlyPrices,
                                function(i, item) {
                                    result += "<tr>";
                                    result += "<td>" + item.Num + "</td>";
                                    result += "<td>" + item.CutPaperNorm + "</td>";
                                    result += "<td>" + item.MachineInfo + "</td>";
                                    result += "<td>" + item.CtpInfo + "</td>";
                                    result += "<td>" + item.PrintLoss + "张</td>";
                                    result += "<td>" + item.CraftLoss + "张</td>";
                                    result += "<td>" + item.PaperTonPrice + "元</td>";
                                    result += "<td>" + item.PaperNum + "张</td>";
                                    result += "<td>" + item.PrintPrice + "元</td>";
                                    result += "<td>" + item.PaperPrice + "元</td>";
                                    result += "<td>" + item.MembrancePrice + "元</td>";
                                    result += "<td>" + item.FoldPrice + "元</td>";
                                    result += "<td>" + item.PressPrice + "元</td>";
                                    result += "<td>" + item.NumberPrice + "元</td>";
                                    result += "<td>" + item.CutPrice + "元</td>";
                                    result += "<td>" + item.TotalPrice + "元</td>";
                                    result += "</tr>";
                                });
                            result += "</tbody>";
                            $("#tbResult").append(result);
                            $("#txtResult").val(data.Result.Desc);
                            $("#rowResult").show();
                            $("#btnResult").show();
                        } else if (true) {
                            $("#rowResult").hide();
                            $("#btnResult").hide();
                            var result = "<thead>";
                            result += "<tr>";
                            result += "<th>成品数量</th>";
                            result += "<th>总费用</th>";
                            result += "</tr>";
                            result += "</thead>";
                            result += "<tbody>";
                            result += "<tr>";
                            result += "<td>" + data.Result.OnlyPrices[0].Num + "</td>";
                            result += "<td>" + data.Result.OnlyPrices[0].TotalPrice + "元</td>";
                            result += "</tr>";
                            result += "</tbody>";
                            $("#tbResult").append(result);
                        }
                    } else {
                        var resultErr = "<thead>";
                        resultErr += "<tr>";
                        resultErr += "<th>" + data.Msg + "</th>";
                        resultErr += "</tr>";
                        resultErr += "</thead>";
                        $("#tbResult").append(resultErr);
                    }
                }
            });
        }

        function clearForm() {
            location.reload();
        }
    </script>

</body>
</html>
